//获取应用实例
let app = getApp();
let httptool=require("../../../utils/zry.httptool.js");
Page({
  data:{
    historyData:[],
    msgprop: '',//消息提示 
    noData: false,
  },
  onLoad:function(options){
    // 页面初始化 options为页面跳转所带来的参数
    let that=this;
    that.getRecord();
  },
  getRecord:function(e){
    let that=this;
    let customerId = app.getStorage('customerId');
    httptool.ajaxPost("api/CicrleProcess/GetCicrleProcess", { UserId: customerId }, function (res) {
      if (res.suc) {
        let data = app.notNull(res.data, []);
        that.setData({ historyData: data, noData: data.length == 0});
      } else {
         app.showNotify(that, res.msg);
      }
    });
  },

})